# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.


class TiDBNode(object):

    def __init__(self, nodeId=None, nodeType=None, nodeStatus=None, cpuUtil=None, memeryUtil=None, diskUsage=None):
        """
        :param nodeId: (Optional) 节点ID
        :param nodeType: (Optional) 节点类型，支持,tidb,tikv,pd,tiflash,monitor
        :param nodeStatus: (Optional) 节点状态
        :param cpuUtil: (Optional) CPU 使用百分比，例如0.832表示CPU使用率为83.2%
        :param memeryUtil: (Optional) 内存使用百分比，例如0.832表示内存使用率为83.2%
        :param diskUsage: (Optional) 存储使用百分比，例如0.832表示存储使用率为83.2%
        """

        self.nodeId = nodeId
        self.nodeType = nodeType
        self.nodeStatus = nodeStatus
        self.cpuUtil = cpuUtil
        self.memeryUtil = memeryUtil
        self.diskUsage = diskUsage
